<template>
  <div id="app">
    <ul>
      <li v-for="(item, index) in arr" :key="index">{{ item }}</li>
    </ul>
    <button @click="order">走一走</button>
  </div>
</template>

<script>
export default {
  name: "VuecliZuoyeApp",

  data() {
    return {
      arr: ["帅哥", "美女", "程序猿"],
    };
  },

  methods: {
    order() {
      this.arr.push(this.arr.shift());
    },
  },
};
</script>

<style lang="scss" scoped>
</style>